from django.db import models

# Create users models here.


class PersonModel(models.Model):

    name = models.CharField('姓名', max_length=32, unique=True)
    age = models.IntegerField('年龄', default=18)

    def __str__(self):
        return f'{self.name} + {self.age}'

    class Meta:

        db_table = 'tb_person'
